import request from '@/utils/request'

const {
    get: $get,
    post: $post,
    delete: $delete,
    download: $download
} = request

// 查询监测点分布信息全部
export const alarmMonitorPointList = data => {
    return $get('/alarm/alarmMonitorPoint/list', data)
}

// 查询监测点分布信息列表
export const alarmMonitorPointPage = data => {
    return $get('/alarm/alarmMonitorPoint/page', data)
}

// 新增监测点分布信息
export const alarmMonitorPointAdd = data => {
    return $post('/alarm/alarmMonitorPoint/add', data)
}

// 查询监测点分布信息详情
export const alarmMonitorPointDetail = id => {
    return $get('/alarm/alarmMonitorPoint/detail/'+ id)
}

// 更新监测点分布信息
export const alarmMonitorPointUpdate = data => {
    return $post('/alarm/alarmMonitorPoint/update', data)
}

// 删除监测点分布信息
export const alarmMonitorPointDelete = id => {
    return $post('/alarm/alarmMonitorPoint/delete/'+ id)
}

// 导出监测点分布信息
export const alarmMonitorPointExport = (data,fileName) => {
    return $download('/alarm/alarmMonitorPoint/export',data, fileName)
}
